package com.atguigu.eduservice.client;

import com.atguigu.common.R;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class VodClientImpl implements VodClient {
    //熔断器方法，调用出错了，执行了
    @Override
    public R deleteVideoAliyun(String videoId) {
        System.out.println("deleteVideoAliyun熔断方法执行了...");
        return R.error().message("调用失败");
    }

    @Override
    public R deleteBatchVideoIds(List<String> videoIdsList) {
        return R.error().message("调用失败");
    }
}
